package com.piterlin.motto;

import com.tencent.exmobwin.MobWINManager;
import com.tencent.exmobwin.Type;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.view.View;

public class MainActivity extends Activity {
	public static ViewPager vPager;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.main_activity);
		MobWINManager.init(this, Type.MOBWIN_BANNER);
		vPager = (ViewPager) findViewById(R.id.main_pager);
		vPager.setAdapter(new ContentPageAdapter(this));
	}
	
	public void closeWin(View view){
		this.finish();
	}
	
	public void openHelp(View view){
		this.startActivity(new Intent(this,HelpActivity.class));
	}

	@Override
	protected void onDestroy() {
		MobWINManager.destroy();
		super.onDestroy();
	}

}
